xen/ioreq: Make x86's hvm_ioreq_needs_completion() common
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Fri, 29 Jan 2021 01:48:33 +0000 (03:48 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 29 Jan 2021 16:18:15 +0000 (16:18 +0000)
commit4607644168597c79b5c350ce326e81f8f27fbc11
tree9df8dd5797b3e770d331f6852ac138897e982eac
parent1723e4a08c596b055680aa8aac104aadd666be39
xen/ioreq: Make x86's hvm_ioreq_needs_completion() common

The IOREQ is a common feature now and this helper will be used
on Arm as is. Move it to xen/ioreq.h and remove "hvm" prefix.

Although PIO handling on Arm is not introduced with the current series
(it will be implemented when we add support for vPCI), technically
the PIOs exist on Arm (however they are accessed the same way as MMIO)
and it would be better not to diverge now.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
CC: Julien Grall <julien.grall@arm.com>
[On Arm only]
Tested-by: Wei Chen <Wei.Chen@arm.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/hvm/io.c
xen/common/ioreq.c
xen/include/asm-x86/hvm/vcpu.h
xen/include/xen/ioreq.h